/**
 * 
 */
package hotgammon.variants.extraturn;

import hotgammon.common.ExtraTurnStrategy;

/**
 * @author khanh.nhan
 * Represents the extra turn variant when the player get an extra turn
 * after rolling 1-2 or 2-1
 */
public class AceyDeuceyExtraTurn implements ExtraTurnStrategy {
	@Override
	public boolean extra(int[] lastDices) {
		return lastDices.length == 2 && lastDices[0] == 1 && lastDices[1] == 2;
	}
	  
}
